use std::{fs, io::ErrorKind, path::Path};

use crate::error;

pub fn makesure_dir(path_str: &String) {
	let path = Path::new(path_str);
	match fs::create_dir_all(path) {
		Err(e) => if e.kind() != ErrorKind::AlreadyExists {
			error!(e);
		}, Ok(_) => {},
	};
}
